<!DOCTYPE html>
<html>
	<head>
	<meta charset="utf-8" />
	<meta name="author" content="Liang wei">
    <meta name="viewport" content="width= device-width , user-scalable=no,initial-scale=1.0" />
	<link rel="stylesheet" href="css/header.css" />
	<link rel="stylesheet" href="css/lunbo.css" />
	<link rel="stylesheet"  href="css/base.css"/>
	<link rel="stylesheet" href="css/index.css" />
	<script type="text/javascript" src="js/lunbo.js" ></script>
	<script type="text/javascript" src="js/jquery-3.1.1.js" ></script>
	<script type="text/javascript" src="js/vue.js" ></script>
	<link rel="stylesheet" href="css/footer.css" />
	
	<style>
		.mima input{
			  padding-top: 28px;
		      margin:auto;
	    }
	</style>
	</head>
	<body>
		<div>
		<div>
		<header>
				
				<a href="wode.html"><img src="img/fanhui.png" style="width: 20px; alt="返回""/></a>
				
		</header>
		
		
		
			 
	        <div class="mima" >
	        	<p>新密码:<input id="npwd" /></p>
	        	<p>确认:<input id="npwd1" /></p>
	        	<button onclick="xiugai()">确认</button>
	        	
	        </div>
     
	
	<!--尾栏-->
	<div class="footer_box">		
	            <a href="train2.html"><img src="img/步数.png"/>训练</a>     
               <a href="club.html"><img src="img/运动.png"/>俱乐部</a>
               <a href="index.html"><img src="img/设备.png"/>约建</a>
               <a href="showpicture.html"><img src="img/活动.png"/>晒图</a>   
              <a href="wode.html"><img src="img/首页.png"/>我的</a>
    </div>


	<script type="text/javascript" src="js/common.js" ></script>	
	<script>
		
		function xiugai(){
            	 var npwd=$("#npwd").val();
		    		 var npwd1=$("#npwd1").val();
		    		 var userid=window.localStorage.getItem("userid");
//		    		 console.log(userid);
//		    		 console.log(npwd);
//		    		 console.log(npwd1);
		 $.ajax({
             type: "POST",
             url: "http://172.24.10.175/workout/api.php/updatepass/userid/"+userid+"/password/"+npwd,
              dataType: "jsonp",
　　　　　　　  success: function(result){
         
            }
           });
           
            }
	
	</script>	
	</body>

</html>
